package blackitheima1.SystemTest;
//数组拷贝
public class SystemArray {
    public static void main(String[] args) {
        //定义数组
        int[]arr1={1,2,3,4,5,6};
        int[]arr2=new int[10];
        //arraycopy 数组拷贝
        System.arraycopy(arr1,0,arr2,2,5);
        //遍历arr2数组
        for (int i = 0; i < arr2.length; i++) {
            System.out.print(arr2[i]+" ");
        }
        System.out.println();
    }
}
